package com.example.maxboxtwo.utils.adapters;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.fragment.app.FragmentManager;
import java.util.List;
public class CustomizeViewPageAdapter extends FragmentPagerAdapter {
    // fragmentPagerAdapter is managing all fragments
    private List<Fragment> lists;
    public CustomizeViewPageAdapter(FragmentManager manager, List<Fragment> list) {
        super(manager);
        this.lists = list;
    }

    // get all fragment of pages
    @Override
    public int getCount() {
        return lists.size();
    }
    // get current fragment of pages
    @Override
    public  Fragment getItem(int position) {
        return lists.get(position);
    }


}
